# Maintainer: Krystian Chachuła <krystian@krystianch.com>
pkgname=py3-poppler-qt5
_pkgname=python-poppler-qt5
pkgver=21.3.0
pkgrel=1
pkgdesc="Python binding to Poppler-Qt5"
url="https://github.com/frescobaldi/python-poppler-qt5"
arch="all"
license="LGPL-2.1-or-later"
depends="py3-qt5 poppler-qt5"
makedepends="
	py3-gpep517
	py3-wheel
	py3-sip
	python3-dev
	py3-pyqt-builder
	qt5-qtbase-dev
	poppler-qt5-dev
"
source="$_pkgname-$pkgver.tar.gz::https://github.com/frescobaldi/python-poppler-qt5/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/*.whl
}

sha512sums="
cc942a860c2c999ff04fb0468b1556b0e23e7aa19a0185a39c5e903e717dca64bcbd51b8fe34b6885bd789cbf5cc1080c2ca1dcee30b3e69fa1721618e8db278  python-poppler-qt5-21.3.0.tar.gz
"
